package com.alks.entity.data.enums.chengkong;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public enum KfNoteEnum {
    DECISION("1","裁断注意事项"),
    WORKMANSHIP("2","工艺注意事项"),
    SEWING_MACHINE("3","针车注意事项"),
    FORMING("4","成型注意事项");

    //序号
    private String seqNo;
    //事项名称
    private String seqName;

    KfNoteEnum(String seqNo,String seqName){
        this.seqNo=seqNo;
        this.seqName=seqName;
    }

    //注意事项列表
    public static List<Map<String,String>> noteList(){
        List<Map<String,String>> noteList=new ArrayList<>();
        for (KfNoteEnum value : KfNoteEnum.values()) {
            Map<String,String> note=new HashMap<>();
            note.put("seqNo",value.seqNo);
            note.put("seqName",value.seqName);
            noteList.add(note);
        }
        return noteList;
    }
}
